<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Contact</title>
</head>
<body>
    <table width="80%" border="1px" align="center">
        <tr bgcolor="grey"><th>Imie</th><th>Nazwisko</th><th>Adres</th><th>-</th></tr>
        <c:forEach items="${model.persons}" var="per">
            <tr><td><c:out value="${per.name}"/></td><td><c:out value="${per.surname}"/></td><td><c:out value="${per.address}"/></td><td align="center"></td></tr>
        </c:forEach>
    </table>
    
    <br/><hr/>
    <a href="<c:url value="addperson.htm"/>">Dodaj kontakt</a>
    
</body>
</html>